package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 最爱喝兽奶
 * @create 2022/9/29
 **/
@Data
@TableName(value = "T_HOMEWORK_STU_ANSWER")
public class HomeworkStuAnswer implements Serializable {

    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 作业id
     */
    @TableField(value = "homework_id")
    private String homeworkId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 问题id
     */
    @TableField(value = "question_id")
    private String questionId;

    /**
     * 答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 得分
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 分数的暂存, 多个分数之间用逗号隔开
     */
    @TableField(value = "temp_score")
    private String tempScore;

    /**
     * 分数暂存用的分隔符
     */
    public static final String SEPARATOR = ",";

}
